<!DOCTYPE html>
<html>
<title>九宫格</title>
<head>
<link  charset="utf-8">
<meta name="viewport" content="width=device-width"/>
<style>
.div{
    width:31%;
    padding-bottom:31%;
    background-color:yellow;
    margin:1%;
    float:left;
    border-radius:2%;
}
*{margin:0;
    padding:0;
}
</style>
</head>
<body>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
<div class="div"></div>
</body>
</html>
